package entityDAOs;

import java.util.List;
import org.hibernate.LockMode;
import org.hibernate.Query;
import static org.hibernate.criterion.Example.create;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import entities.Languagecourse;
import entitiesIds.LanguagecourseId;

/**
 * A data access object (DAO) providing persistence and search support for
 * Languagecourse entities. Transaction control of the save(), update() and
 * delete() operations can directly support Spring container-managed
 * transactions or they can be augmented to handle user-managed Spring
 * transactions. Each of these methods provides additional information for how
 * to configure it for the desired type of transaction control.
 * 
 * @see entities.Languagecourse
 * @author MyEclipse Persistence Tools
 */

public class LanguagecourseDAO extends BaseHibernateDAO<Languagecourse,entitiesIds.LanguagecourseId> {
	private static final Logger log = LoggerFactory
			.getLogger(LanguagecourseDAO.class);
	// property constants
	public static final String COURSE_NAME = "courseName";
	public static final String COURSE_DESCRIPTION = "courseDescription";


	public List<Languagecourse> findByCourseName(Object courseName) {
		return findByProperty(COURSE_NAME, courseName);
	}

	public List<Languagecourse> findByCourseDescription(Object courseDescription) {
		return findByProperty(COURSE_DESCRIPTION, courseDescription);
	}
}